package com.rockcent.mall.lib.repository;

import com.rockcent.common.domain.enumclass.Whether;
import com.rockcent.mall.lib.domain.MallCashCoupon;
import com.rockcent.mall.lib.domain.enumclass.MerchantCouponStatus;
import com.rockcent.mall.lib.dto.IntegrationCouponRespDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by zhangjh on 2016/12/19.
 */
@Repository
public interface MallCashCouponRepository extends JpaRepository<MallCashCoupon, Long>, JpaSpecificationExecutor, MallCashCouponRepositoryCustom {

    /**
     * @param id
     * @param mallId
     * @return
     */
    MallCashCoupon findByIdAndMallId(Long id, Long mallId);


}
